<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>关系选择符 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="./群组选择符.html" />
    
    
    <link rel="prev" href="./ID及class选择符.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.4"
        data-chapter-title="关系选择符"
        data-filepath="关系选择符.md"
        data-basepath="."
        data-revision="Fri Sep 01 2017 15:57:44 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="CSS选择符.html">
            
                
                    <a href="./CSS选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        CSS选择符
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="CSS的www.html">
            
                
                    <a href="./CSS的www.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        CSS的www
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="CSS的引入.html">
            
                
                    <a href="./CSS的引入.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        CSS的引入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="ID及class选择符.html">
            
                
                    <a href="./ID及class选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        ID及class选择符
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="关系选择符.html">
            
                
                    <a href="./关系选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        关系选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="群组选择符.html">
            
                
                    <a href="./群组选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        群组选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="伪对象选择符.html">
            
                
                    <a href="./伪对象选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="伪类选择符.html">
            
                
                    <a href="./伪类选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="属性选择符.html">
            
                
                    <a href="./属性选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS样式.html">
            
                
                    <a href="./CSS样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="CSS字体，颜色和文本属性.html">
            
                
                    <a href="./CSS字体，颜色和文本属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS字体，颜色和文本属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="Bootstrap.html">
            
                
                    <a href="./Bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Bootstrap
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x5173;&#x7CFB;&#x9009;&#x62E9;&#x7B26;">&#x5173;&#x7CFB;&#x9009;&#x62E9;&#x7B26;</h2>
<h4 id="&#x5305;&#x542B;&#x9009;&#x62E9;&#x7B26;e-f">&#x5305;&#x542B;&#x9009;&#x62E9;&#x7B26;(E F)</h4>
<pre><code>&#x9009;&#x62E9;&#x6240;&#x6709;&#x88AB;E&#x5143;&#x7D20;&#x5305;&#x542B;&#x7684;F&#x5143;&#x7D20;&#xFF0C;&#x4E2D;&#x95F4;&#x7528;&#x7A7A;&#x683C;&#x9694;&#x5F00;
</code></pre><h4 id="&#x5B50;&#x9009;&#x62E9;&#x7B26;ef">&#x5B50;&#x9009;&#x62E9;&#x7B26;(E&gt;F)</h4>
<pre><code> &#x9009;&#x62E9;&#x6240;&#x6709;&#x4F5C;&#x4E3A;E&#x5143;&#x7D20;&#x7684;&#x76F4;&#x63A5;&#x5B50;&#x5143;&#x7D20;F&#xFF0C;&#x5BF9;&#x66F4;&#x6DF1;&#x4E00;&#x5C42;&#x7684;&#x5143;&#x7D20;&#x4E0D;&#x8D77;&#x4F5C;&#x7528;&#xFF0C;&#x7528;&#x5927;&#x62EC;&#x53F7;&#x8868;&#x793A;
</code></pre><h4 id="&#x76F8;&#x90BB;&#x9009;&#x62E9;&#x7B26;&#xFF08;ef&#xFF09;">&#x76F8;&#x90BB;&#x9009;&#x62E9;&#x7B26;&#xFF08;E+F&#xFF09;</h4>
<pre><code> &#x9009;&#x62E9;&#x7D27;&#x8D34;&#x5728;E&#x5143;&#x7D20;&#x4E4B;&#x540E;&#x7684;F&#x5143;&#x7D20;&#xFF0C;&#x7528;&#x52A0;&#x53F7;&#x8868;&#x793A;&#x3002;&#x9009;&#x62E9;&#x76F8;&#x90BB;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x5144;&#x5F1F;&#x5143;&#x7D20;
</code></pre><h4 id="&#x5144;&#x5F1F;&#x9009;&#x62E9;&#x7B26;&#xFF08;ef&#xFF09;">&#x5144;&#x5F1F;&#x9009;&#x62E9;&#x7B26;&#xFF08;E~F&#xFF09;</h4>
<pre><code>&#x9009;&#x62E9;E&#x5143;&#x7D20;&#x4E4B;&#x540E;&#x7684;&#x6240;&#x6709;&#x5144;&#x5F1F;&#x5143;&#x7D20;F&#xFF0C;&#x4F5C;&#x7528;&#x4E8E;&#x591A;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;&#x7528;~&#x9694;&#x5F00;
</code></pre><pre><code>&#x4EE3;&#x7801;&#x5982;&#x4E0B;
</code></pre><pre><code>        &lt;style&gt;
            div a{
                background:#67B374
            }


            div&gt;a{
                background-color:#E61061 ;
            }
            div+a{
                background-color: skyblue;
            }
            div+p{
                background: #0000FF;
            }
            p~p{
                background-color:#808080;
            }
        &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div&gt;&lt;a&gt;&#x80CC;&#x666F;&#x8272;&#x662F;#E61061&lt;/a&gt;&lt;span&gt;
            &lt;a&gt;&#x80CC;&#x666F;&#x8272;&#x662F;#67B374&lt;/a&gt;&lt;/span&gt;
        &lt;/div&gt;
            &lt;p&gt;&#x80CC;&#x666F;&#x8272;&#x662F;#0000FF&lt;/p&gt;
            &lt;p&gt;&#x80CC;&#x666F;&#x8272;&#x662F;#808080&lt;/p&gt;
            &lt;p&gt;&#x80CC;&#x666F;&#x8272;&#x662F;#808080&lt;/p&gt;            
    &lt;/body&gt;
</code></pre><h2 id="&#x603B;&#x662F;&#x6DF7;&#x6DC6;&#x7684;&#x7B26;&#x53F7;">&#x603B;&#x662F;&#x6DF7;&#x6DC6;&#x7684;&#x7B26;&#x53F7;</h2>
<ul>
<li><strong>&#x5927;&#x4E8E;&#x7B26;&#x53F7;&#x53EA;&#x4F5C;&#x7528;&#x4E8E;&#x5143;&#x7D20;&#x7684;&#x7B2C;&#x4E00;&#x4EE3;&#x540E;&#x4EE3;</strong></li>
<li><strong>&#x7A7A;&#x683C;&#x7B26;&#x53F7;&#x4F5C;&#x7528;&#x4E8E;&#x5143;&#x7D20;&#x7684;&#x6240;&#x6709;&#x540E;&#x4EE3;</strong></li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./ID及class选择符.html" class="navigation navigation-prev " aria-label="Previous page: ID及class选择符"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./群组选择符.html" class="navigation navigation-next " aria-label="Next page: 群组选择符"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
